<template>
	<view class="mine">
		<text>我的</text>
		{{datas}}
	</view>
</template>

<script setup>
		// 第一种方式
		import  {useStore} from 'vuex'
		import { onMounted, ref  } from 'vue'
		let store = useStore()
		let datas = ref(null)
		onMounted(()=>{
			datas.value= store.state.todos
		})
</script>

<style>
	
</style>